class CreateCreditcard < ActiveRecord::Migration
  def change
    create_table :creditcards do |t|
      t.references :terminal_group
      t.references :account

      t.integer :duration_total
      t.integer :duration_used
      t.integer :duration_rest
      t.integer :traffic_total, limit: 8 
      t.integer :traffic_used, limit: 8 
      t.integer :traffic_rest, limit: 8 
      t.integer :limit_up
      t.integer :limit_down
      t.integer :rest_times

      t.timestamps
    end
  end
end
